|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.voice.vxml.FormElement
org.eclipse.vtp.framework.interactions.voice.vxml.Subdialog
public class Subdialog
The Subdialog class represents the <subdialog> VXML
element. From VXML 2.0 Proposed Recommendation 3:
The <subdialog> element invokes a 'called' dialog (known as the subdialog) identified by its src or srcexpr attribute in the 'calling' dialog. The subdialog executes in a new execution context that includes all the declarations and state information for the subdialog, the subdialog�s document, and the subdialog�s application root (if present), with counters reset, and variables initialized. The subdialog proceeds until the execution of a <return> or <exit> element, or until no form items remain eligible for the FIA to select (equivalent to an <exit>). A <return> element causes control and data to be returned to the calling dialog (Section 5.3.10). When the subdialog returns, its execution context is deleted, and execution resumes in the calling dialog with any appropriate <filled> elements.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Subdialog(java.lang.String name)
Creates a new instance of Subdialog with the specified name. |
|
Subdialog(java.lang.String name,
java.lang.String expression)
Creates a new instance of Subdialog with the specified name and an expression that evaluates to the subdialog's initial value. |
|
Subdialog(java.lang.String name,
java.lang.String expression,
java.lang.String condition)
Creates a new instance of Subdialog with the specified name, initial value derived from evaluating the expression, and condition that must be true for the subdialog to be visited. |
|
Subdialog(java.lang.String name,
java.lang.String expression,
java.lang.String condition,
java.lang.String sourceURI)
Creates a new instance of Subdialog with the specified name, initial value derived from evaluating the expression, condition that must be true for the subdialog to be visited, and source URI. |
|
| Method Summary | |
|---|---|
void |
addEventHandler(EventHandler eventHandler)
Adds the specified event handler to this subdialog. |
void |
addFilledHandler(Filled filled)
Adds the specified filled handler to this subdialog. |
void |
addParameter(Parameter parameter)
Adds the specified parameter to the set of parameters for this subdialog. |
java.lang.String |
getSourceURI()
Returns the URI of the document that contains the target dialog. |
void |
removeEventHandler(EventHandler eventHandler)
Removes the specified event handler from this subdialog. |
void |
removeFilledHandler(Filled filled)
Removes the specified filled handler from this subdialog. |
void |
removeParameter(Parameter parameter)
Removes the specified parameter from the set of parameters for this subdialog. |
void |
setSourceURI(java.lang.String sourceURI)
Sets the URI of the document that contains the target dialog. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this form element to the supplied set. |
protected void |
writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
Write the event handlers of this subdialog to the specified content handler. |
protected void |
writeFilledHandlers(org.xml.sax.ContentHandler outputHandler)
Write the filled handlers of this subdialog to the specified content handler. |
protected void |
writeParameters(org.xml.sax.ContentHandler outputHandler)
Write the parameters in this subdialog to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.voice.vxml.FormElement |
|---|
getCondition, getExpression, getName, setCondition, setExpression, setName |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Subdialog(java.lang.String name)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of the subdialog.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.NullPointerException - If the specified name is null.
public Subdialog(java.lang.String name,
java.lang.String expression)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of the subdialog.expression - Evaluates to the subdialog's initial value.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.IllegalArgumentException - If the specified expression is empty.
java.lang.NullPointerException - If the specified name is null.
public Subdialog(java.lang.String name,
java.lang.String expression,
java.lang.String condition)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of the subdialog.expression - Evaluates to the subdialog's initial value.condition - Determines if this subdialog will be visited.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.IllegalArgumentException - If the specified expression is empty.
java.lang.IllegalArgumentException - If the specified condition is empty.
java.lang.NullPointerException - If the specified name is null.
public Subdialog(java.lang.String name,
java.lang.String expression,
java.lang.String condition,
java.lang.String sourceURI)
throws java.lang.IllegalArgumentException,
java.lang.NullPointerException
name - The name of the subdialog.expression - Evaluates to the subdialog's initial value.condition - Determines if this subdialog will be visited.sourceURI - URI of the document that contains the target dialog.
java.lang.IllegalArgumentException - If the specified name is empty.
java.lang.IllegalArgumentException - If the specified expression is empty.
java.lang.IllegalArgumentException - If the specified condition is empty.
java.lang.IllegalArgumentException - If the specified URI is empty.
java.lang.NullPointerException - If the specified name is null.| Method Detail |
|---|
public java.lang.String getSourceURI()
public void setSourceURI(java.lang.String sourceURI)
throws java.lang.IllegalArgumentException
sourceURI - URI of the new target document.
java.lang.IllegalArgumentException - If the specified URI is empty.
public void addParameter(Parameter parameter)
throws java.lang.NullPointerException
parameter - The parameter to add.
java.lang.NullPointerException - If the supplied parameter is null.
public void removeParameter(Parameter parameter)
throws java.lang.NullPointerException
parameter - The parameter to remove.
java.lang.NullPointerException - If the supplied parameter is null.
public void addFilledHandler(Filled filled)
throws java.lang.NullPointerException
filled - The filled handler to be added.
java.lang.NullPointerException - If the supplied filled handler is
null.
public void removeFilledHandler(Filled filled)
throws java.lang.NullPointerException
filled - The filled handler to be removed.
java.lang.NullPointerException - If the supplied filled handler is
null.
public void addEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to add.
java.lang.NullPointerException - If the supplied event handler is
null.
public void removeEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to remove.
java.lang.NullPointerException - If the supplied event handler is
null.
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
FormElement
writeAttributes in class FormElementattributes - The attribute set to write to.
protected void writeParameters(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the parameters fails.
protected void writeFilledHandlers(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the filled handlers fails.
protected void writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||